import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/login',//登陆
    name: 'login',
    component: ()=>import('../views/keji/LoginView.vue')
  },
  {
    path: '/register',//注册
    name: 'register',
    component: () => import('../views/keji/RegisterView.vue')
  },
  {
    path: '/home',//主页
    name: 'home',
    component: ()=>import('../views/keji/HomePage.vue')
  },
  {
    path: '/question',//问答展示
    name: 'question',
    component: ()=>import('../views/keji/QuestionView.vue')
  },
  {
    path: '/blog',//博客展示
    name: 'blog',
    component: ()=>import('../views/keji/BlogView.vue')
  },
  /*{
    path: '/detail',//博客展示
    name: 'detail',
    component: ()=>import('../views/keji/DetailView.vue')
  },*/
  {
    path: '/information',//个人信息
    name: 'information',
    component: ()=>import('../views/keji/InformationView.vue')
  },
  {
    path: '/account',//班级账单
    name: 'account',
    component: ()=>import('../views/keji/AccountView.vue')
  },
  {
    path: '/table',//编辑班级账单
    name: 'table',
    component: ()=>import('../views/keji/TableView.vue')
  },
  {
    path: '/edit',//编辑博客界面
    name: 'edit',
    component: ()=>import('../views/keji/EditView.vue')
  },
  {
    path: '/',
    redirect: '/home'
  }
]

const router = new VueRouter({
  routes
})

export default router
